package com.wuseguang.springcloud.dao.repository;

import com.wuseguang.springcloud.entity.HaiweidaDataId;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface HaiweidaDataIdRepository extends JpaRepository<HaiweidaDataId,Integer> {

    @Query(value = "select * from haiweida_data_id where school_id = ?1",nativeQuery = true)
    HaiweidaDataId findBySchoolId(Integer schoolId);
}
